import java.util.Scanner;

public class Text4 {
    public static void main2(String[] args) {
        int num = 10;
        int count = 0;
        while(num != 0){
            if(((num & 1) ==1)){
                count++;
            }
            num >>>=1;
        }
        System.out.println(count);
    }
    public static void main(String[] args) {
        /*Scanner sca = new Scanner(System.in);
        int num = sca.nextInt();*/
        int num = 11;
        int count=0;
        while(num != 0){
            num &= num-1;
            count++;
        }


        System.out.println("在二进制中的 1 一共有："+count);
    }
}
